import request from '@/router/axios'

// 活码分组列表
export function channelCodeGroupList(query) {
	return request({
		url: '/cp/channelcodegroup/index',
		method: 'get',
		params: query
	})
}

// 新建活码分组
export function createChannelCodeGroup(data) {
	return request({
		url: '/cp/channelcodegroup',
		method: 'post',
		data: data
	})
}

// 移动分组
export function moveChannelCodeGroup(obj) {
	return request({
		url: '/cp/channelcodegroup/move',
		method: 'put',
		data: obj
	})
}

// 修改活码分组
export function updateChannelCodeGroup(data) {
	return request({
		url: '/cp/channelcodegroup',
		method: 'put',
		data: data
	})
}
